/*$Id$*/
package com.leetech.gwt.client;

import java.util.Iterator;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;



public class LabeledWidget extends Composite {

    // Static initialization-------------------------------------------
    // Instance variables----------------------------------------------
    Label label;
    Widget widget;
    // Constructors----------------------------------------------------
    // Methods---------------------------------------------------------
    public LabeledWidget(Widget widget){
        label = new Label();
        VerticalPanel pan= new VerticalPanel();
        pan.add(label);
        pan.add(widget);
        this.widget = widget;
        initWidget(pan);
    }
    
    public String getLabel() {
        return label.getText();
    }
    public void setLabel(String label) {
        this.label.setText(label);
    }
    public Widget getWidget() {
        return widget;
    }

    
    

    
    // Inner Classes --------------------------------------------------
}

